package com.itcp.itelpicture.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itcp.itelpicture.domain.po.Tag;
import com.itcp.itelpicture.mapper.TagMapper;
import com.itcp.itelpicture.service.TagService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author wgz
 * @description 针对表【tag(标签表)】的数据库操作Service实现
 * @createDate 2025-04-12 13:21:17
 */
@Service
@RequiredArgsConstructor
public class TagServiceImpl extends ServiceImpl<TagMapper, Tag> implements TagService {

    private final TagMapper tagMapper;

    @Override
    public Tag getByCategory(String category) {
        return tagMapper.getByCategory(category);
    }
}
